package com.springboot.erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.erp.entity.Return;
import com.springboot.erp.entity.Return;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ReturnMapper extends BaseMapper<Return> {

    Return selectReturnList(@Param("id") Long id);

    int insertReturn(Return entity);

    int insertReturnItem(Return entity);

    int updateReturnById(Return entity);

    int updateReturnItem(Return entity);

    int deleteReturnById(@Param("id") Long id);

    int deleteReturnItemByHeaderId(@Param("id") Long id);

}